﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OwnerTools.model
{
    public class UserModel
    {
        private string _name;
        public string Name 
        {
            get
            {
                return _name;
            }
        }
        private string _password;


        public UserModel()
        {
            _name = "Admin";
            _password = "123456";
        }
        public bool CheckLogin(string name, string password)
        {
            if (_name != name)
            {
                return false;
            }
            return _password == password;
        }
    }
}
